<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Login</title>
    <div th:insert="base :: resource"></div>
</head>
<body>
<nav th:insert="base :: nav"></nav>
<form action="" method="post" th:action="@{userLogin}">
    <div class="col-md-4 col-md-offset-4">
        <h2 th:text="${msg}"></h2>
        <div class="form-group">
            <label for="exampleInputEmail1">用户名</label>
            <input type="text" class="form-control" id="exampleInputEmail1" placeholder="userName" name="userName">
        </div>
        <div class="form-group">
            <label for="exampleInputPassword1">密码</label>
            <input type="password" class="form-control" id="exampleInputPassword1" placeholder="Password"
                   name="password">
        </div>
        <button type="submit" class="btn btn-default">Submit</button>
    </div>
    <!--    <a href="http://www.baidu.com" th:href="@{main}">主页面</a>-->
</form>
</body>
</html>